package com.yc.project3.bean;

import com.yc.project3.annotations.Constraints;
import com.yc.project3.annotations.DBTable;
import com.yc.project3.annotations.SQLType;

/**
 * @author zwei
 * @create 2024-07-26 19:34
 */
@DBTable(name = "Product140")
public class Product {
    @SQLType(dbtype="int",constraints = @Constraints(primarKey = true))
    private int pid;
    @SQLType(dbtype = "varchar(20)")
    private String pname;
    @SQLType(dbtype = "decimal(10,2)",constraints = @Constraints)
    private String price;

    public void setPid(int pid) {
        this.pid = pid;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getPid() {
        return pid;
    }

    public String getPname() {
        return pname;
    }

    public String getPrice() {
        return price;
    }
}
